<%= div_for article do %>
  <h3>
	<%#= params.inspect %>
  	<% if params[:action] == 'index' %>
  		<span><%= (article_counter+1).to_s + "." %></span>
  	<% end %>
  	<!-- 简写形式如下 link_to article.title, article_path(article) -->
    <%= link_to article.title, article %>
    <% if article.owned_by?(current_user) %>
      <span class='actions'>
        <%= link_to "Edit", edit_article_path(article) %>
        <%= link_to "Delete", article, confirm: "Are you sure?", method: :delete %>
      </span>
    <% end %>
  </h3>
  <!-- 简单格式化 默认将\n转换为br，并用p标签包围内容 -->
  <%= simple_format article.body %>
<% end %>
